Skip to content

fixed Win11 phantom Alt Tabs + fullscreen fix + set mouse events support - #65

Merged
Armaldio merged 11 commits into
CynToolkit:mainfrom
skymen:develop
Mar 27, 2026
Merged

fixed Win11 phantom Alt Tabs + fullscreen fix + set mouse events support#65
Armaldio merged 11 commits into
CynToolkit:mainfrom
skymen:develop

Conversation

@skymen

@skymen skymen commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@skymen

skymen commented Mar 26, 2026

Copy link
Copy Markdown
Contributor Author

Ok so according to ceifa/steamworks.js#95

The root cause seems to be disable-direct-compositing.

From my research, there is no good reason to enable this as the overlay works without it, and it doesnt do anything on Mac and Linux

The bug seems to be Win11 only, and removing it seems to have fixed the issue (?)

Also, I investigated the fullscreen stuff because in that same issue someone mentioned that they had issues with the fullscreen, but I cant repro any issue. It did remind me of a bug on MacOS where if I set fullscreen to false (so the game doesnt start in fullscreen) electron disables native fullscreen entirely for the game, so to fix that I added fullscreenable

As explained in https://www.electronjs.org/docs/latest/api/base-window if fullscreen is explicitely set to false, it disables the fullscreen option on macOs if fullscreenable is not set.

@skymen

skymen commented Mar 26, 2026

Copy link
Copy Markdown
Contributor Author

Added support for ignoring mouse events out of spite bc ppl are selling 8 lines of code 10USD on itch.io

@skymen skymen changed the title WIP trying to fix Win11 phantom Alt Tabs fixed Win11 phantom Alt Tabs + fullscreen fix + set mouse events support Mar 26, 2026
@skymen
skymen marked this pull request as ready for review March 26, 2026 19:29
@Armaldio
Armaldio merged commit c2a09dd into CynToolkit:main Mar 27, 2026
2 of 6 checks passed
Armaldio pushed a commit that referenced this pull request Apr 16, 2026
…ort (#65)

* fix: properly cleanup resources on macOS quit to prevent hanging

* added save screenshot handler

* fixed screenshot code, there needs to be a little delay before deleting the file otherwise steam fails to copy it

* WIP trying to fix window bug

* WIP

* Made the implementation I had much simpler

* removed unneeded change

* reverted some changes

* disabled disable-direct-composition and enabled fullscreenable

* Added support for set ignore mouse events
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants